﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WebApp.ViewModels
{
    public class AjaxResult
    {
        public const string RESULT_OK = "0";
        public const string RESULT_ERROR = "1";
        public const string RESULT_SESSION_TIMEOUT = "2";
        public const string RESULT_500 = "500";

        public string Ret
        {
            get;
            set;
        }

        public string Msg
        {
            get;
            set;
        }

        public object Content
        {
            get;
            set;
        }


        public AjaxResult(string ret, string msg)
        {
            this.Ret = ret;
            this.Msg = msg;
        }

        public AjaxResult(string ret, string msg, object content)
        {
            this.Ret = ret;
            this.Msg = msg;
            this.Content = content;
        }
    }
}
